Skip to content

Conversation

@googlewalt
Copy link
Contributor

This reverts commit d25f95f, after 9e306ad was rolled back in e2a8855 (r576388).

This reverts commit d25f95f, after
9e306ad was rolled back in e2a8855 (r576388).
@llvmbot llvmbot added the clang Clang issues not falling into any other category label May 26, 2025
@llvmbot
Copy link
Member

llvmbot commented May 26, 2025

@llvm/pr-subscribers-clang

Author: Walter Lee (googlewalt)

Changes

This reverts commit d25f95f, after 9e306ad was rolled back in e2a8855 (r576388).


Full diff: https://github.com/llvm/llvm-project/pull/141532.diff

1 Files Affected:

  • (modified) clang/tools/clang-fuzzer/handle-cxx/handle_cxx.cpp (+2-2)
diff --git a/clang/tools/clang-fuzzer/handle-cxx/handle_cxx.cpp b/clang/tools/clang-fuzzer/handle-cxx/handle_cxx.cpp
index 98925c00260f1..14204021d262b 100644
--- a/clang/tools/clang-fuzzer/handle-cxx/handle_cxx.cpp
+++ b/clang/tools/clang-fuzzer/handle-cxx/handle_cxx.cpp
@@ -32,9 +32,9 @@ void clang_fuzzer::HandleCXX(const std::string &S,
   llvm::IntrusiveRefCntPtr<FileManager> Files(
       new FileManager(FileSystemOptions()));
   IgnoringDiagConsumer Diags;
-  DiagnosticOptions DiagOpts;
+  IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions();
   DiagnosticsEngine Diagnostics(
-      IntrusiveRefCntPtr<clang::DiagnosticIDs>(new DiagnosticIDs()), DiagOpts,
+      IntrusiveRefCntPtr<clang::DiagnosticIDs>(new DiagnosticIDs()), &*DiagOpts,
       &Diags, false);
   std::unique_ptr<clang::CompilerInvocation> Invocation(
       tooling::newInvocation(&Diagnostics, CC1Args, /*BinaryName=*/nullptr));

@googlewalt googlewalt closed this May 26, 2025
@googlewalt googlewalt deleted the fuzzer branch October 22, 2025 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clang Clang issues not falling into any other category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants